﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="Login.ascx.cs" Inherits="Cart.Login" %>
<script type="text/javascript">
    $(document).ready(function () {

        $("#ctl00_uclogin1_login_pass").val("123456");

        $('a[title="Đăng ký"]:first').qtip(
   {
       content: {
           title: {
               text: 'ĐĂNG KÝ THÀNH VIÊN',
               button: 'X'
           },
           url: 'register.aspx'
       },
       position: {
           target: $(document.body), // Position it via the document body...
           corner: 'center' // ...at the center of the viewport
       },
       show: {
           when: 'click', // Show it on click
           solo: true // And hide all other tooltips
           //modal: true
       },
       hide: 'unfocus', //hide: false,
       style: {
           width: 760,
           height: { max: 500 },
           padding: '14px',
           border: {
               width: 9,
               radius: 9,
               color: '#666666'
           },
           name: 'light'
       },
       api: {
           beforeShow: function () {
               // Fade in the modal "blanket" using the defined show speed
               $('#qtip-blanket').fadeIn(this.options.show.effect.length);
           },
           beforeHide: function () {
               // Fade out the modal "blanket" using the defined hide speed
               $('#qtip-blanket').fadeOut(this.options.hide.effect.length);
           },
           onHide: function () {
               //$('.content_all_title').html("abc");
               //location.reload();
           }
       }
   });

        $('a[title="Quên mật khẩu"]:first').qtip(
   {
       content: {
           title: {
               text: 'CHỨC NĂNG PHỤC HỒI MẬT KHẨU',
               button: 'X'
           },
           url: 'http://thoitrangdshop.vn/forgot_password.aspx'
       },
       position: {
           target: $(document.body), // Position it via the document body...
           corner: 'center' // ...at the center of the viewport
       },
       show: {
           when: 'click', // Show it on click
           solo: true // And hide all other tooltips
           //modal: true
       },
       hide: 'unfocus', //hide: false,
       style: {
           width: 760,
           height: { max: 500 },
           padding: '14px',
           border: {
               width: 9,
               radius: 9,
               color: '#666666'
           },
           name: 'light'
       },
       api: {
           beforeShow: function () {
               // Fade in the modal "blanket" using the defined show speed
               $('#qtip-blanket').fadeIn(this.options.show.effect.length);
           },
           beforeHide: function () {
               // Fade out the modal "blanket" using the defined hide speed
               $('#qtip-blanket').fadeOut(this.options.hide.effect.length);
           },
           onHide: function () {
               //$('.content_all_title').html("abc");
               //location.reload();
           }
       }
   });


        // Create the modal backdrop on document load so all modal tooltips can use it
        $('<div id="qtip-blanket">')
      .css({
          position: 'absolute',
          top: $(document).scrollTop(), // Use document scrollTop so it's on-screen even if the window is scrolled
          left: 0,
          height: $(document).height(), // Span the full document height...
          width: '100%', // ...and full width

          opacity: 0.7, // Make it slightly transparent
          backgroundColor: 'black',
          zIndex: 5000  // Make sure the zIndex is below 6000 to keep it below tooltips!
      })
      .appendTo(document.body) // Append to the document body
      .hide(); // Hide it initially
    });
							</script>

<div id="ctl00_uclogin1_header_login_frm" class="header_login_frm">
    <div class="login_email">
        <%--<input onblur="javascript:if(this.value == '')this.value='Email đăng nhập';"
                                    id="ctl00_uclogin1_login_email" onfocus="javascript:if(this.value == 'Email đăng nhập') this.value='';"
                                    title="Email đăng nhập" name="ctl00$uclogin1$login_email" value="Email đăng nhập"
                                    type="text">--%>
        <asp:TextBox runat="server" ID="txtEmail" ToolTip="Email đăng nhập" Text="Email đăng nhập" ></asp:TextBox>
    </div>
    <div class="login_pass">
        <%--<input onblur="javascript:if(this.value == '')this.value='123456';"
                                    id="ctl00_uclogin1_login_pass" onfocus="javascript:if(this.value == '123456') this.value='';"
                                    title="Mật khẩu đăng nhập" name="ctl00$uclogin1$login_pass"
                                    type="password"--%>
        <asp:TextBox TextMode="Password" runat="server" ID="txtPass" ToolTip="Mật khẩu đăng nhập"></asp:TextBox>
    </div>
    <div class="login_submit">
        <%--<input id="ctl00_uclogin1_login_submit" title="" onclick="javascript: __doPostBack('ctl00$uclogin1$login_submit', '')" name="ctl00$uclogin1$login_submit" value="." type="button"></div>--%>
        <asp:Button runat="server" ID="btSubmit" OnClick="btSubmit_Click" />
    </div>
    <div class="header_login_show">
        <ul id="ctl00_uclogin1_login_show">
            <li><a title="Đăng ký" href="javascript:void(0);">Đăng ký</a></li>
        </ul>
    </div>
</div>
